# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=py3-pure_protobuf
# Also needs to be updated in the use_fixed_version.patch
pkgver=2.3.0
pkgrel=0
pkgdesc="Python implementation of Protocol Buffers with dataclass-based schemaʼs "
url="https://pypi.org/project/pure-protobuf/"
arch="noarch"
license="MIT"
depends="py3-typing-extensions"
makedepends="
py3-gpep517
py3-hatchling
py3-poetry-core
py3-wheel
"
subpackages="$pkgname-pyc"
source="
	https://github.com/eigenein/protobuf/archive/$pkgver/protobuf-$pkgver.tar.gz
	use_fixed_version.patch
"
builddir="$srcdir/protobuf-$pkgver"
options="!check"

build() {
	gpep517 build-wheel \
		--wheel-dir dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/*.whl
}

sha512sums="
60857977f56833262244cd6d406d1f021e1e7ebb78f5fd71276faaab37393a49d1dbdf8c9006933715dbc52e154c050fbabb139ff336cd1e3b4239dc8a3fdee1  protobuf-2.3.0.tar.gz
bd2d1734bbb97fd0067c7a4b3c91ddada441a971f811e6b7a8b817d71a8223c44581a56cce93d2c948a3eee5c530af2ca59a065c09f5c1a5bbf98806aecb4b0e  use_fixed_version.patch
"
